Refactoring Process class and specs