Added solution to jackpot problem