used inheritance on student class