finished calculator methods for issue 6