Created program for exercise 1.20