https://physicshindime.com/programming/write-code-in-c-for-vertically-upward-motion/