finished up calculator example