Solution to raffle lab problem