The cake represents the book of spells, along with the wand and snitch. The client also wanted Dobby the elf to be included.