Answered the first problem of the third puzzle.