Time dilation and length contraction