Slit code into classes