Trying to get join in class definition to simplify API definitions