Refactored classes to return value instead of echoeing them directly. added phpunit infraestructure and first test