implemented calculator while watching the video