hardgrey007's submissions for second problem