homework 2 by Dean Attali