A calculator realized by Swift