finished 2nd assignment