completed ex for cahpter 5