Completed exercise 4B