Updated Author model to class example