Refactored. Front Controller pattern implemented. MVC pattern implemented.