second problem finished