Created initial structure to refactor the code dividing it in more classes.