defined an endpoint for each class.