implemented Dog REST API