Adding VerticalMotion class