chapter 10: seperate files

Separated classes into separate files.