Khalid is close to graduation from magic school when his teacher lets him try out a magic lamp. Unfortunately, Khalid forgets to tell his first human master the most important rule--humans are entitled to only three wishes. So when his human wishes for an infinite number of wishes, Khalid is trapped in his lamp forever.