A simple lottery game for a university assignment