Simple program that calculates the properties of 1-Dimensional motion