Completion of assignment 21, #38