Execute the commands and Output the final position

Its rudimentary but it works!