splitting files into classes