Vertical motion with rebounds