deleting classes from main program