get class from models