Made the code object oriented around processes