function progressPercentage = getProgress(person)
  if (isa(person, 'Student'))
      progressPercentage = (person.credits / 120) * 100;
  elseif (isa(person, 'Teacher'))
      progressPercentage = (person.yearsTaught / 30) * 100;
  end