exercise 5 - c structure