second problem from last homework