Implemented an interface for handling requests