At the starting of the story Patrick was naughty, he used the delay of his work and was more focused on the other things but later when he met an elf. The elf made him do his work by screaming at him all the time. By the end of the semester, he has done his work all by himself and scored an A grade. So, by the end of the story without realizing the fact he changed himself.