completed ex7.4