1st draft of calculator