Because fuck cs240 - this is not actually great working code