Simple and robust calculator written on Swift