use nested classes on the top + try to move nested classes to own file