converted classes.h into separate files