Created an abstract class to handle the lotteries so that we can add more types in the future.