Code written for my Discrete Math class