Added composer.json
Refactored to add a response class