Command line calculator written in Swift