Tod's project for Console projects 2 and 3 in lua