Exercise 1.4 for using basic operators