completed 2nd assignment