basic operations on numbers and strings
integrating previous lessons in handling pairs