Answer ex4.23

Closed #3