finish Q5.c