Did homework assignment -- worked! Used final as example to work through it.