Update main_class.php

Cleaned up this file. This is WORKING CODE! for Thursday.