Length contraction and time dilation