It was Patrick himself who actually did all the homework. He had to help the elf again and again with guidance and books.