Implement endpoints for assignment.