part A of exercise 44