Answer ex1.45 (in progress)