My code from Programming 1