Completed ex38
Completed ex39
Completed ex40