implemented basic Endpoint