completed ex 2.10
drafted, need to test ex 2.11