added classes endpoint