added traceback, made the function so it distributes hours over putting them into 1 class (given same MAX), and then reduced the 3rd to g using auxilary to store parent