Completed exercise22