Assignment 3 and ex. 10.18