First draft of the calculator script for d02 homework