Model converted to class syntax