finally moved code to its own file;
updated Index - looks like I forgot a lot of Chapter 4;
actually committing the changes I meant to do in the last commit;
created some syntactic sugar;