Please finish the following JAVA Codes:
1. The class Person includes information of a person’s firstname, last name, phone number, and email. Implement the class withappropriate constructors, getters and setters.
2. Derive a Student class that extends Person. In addition to aperson’s information, a student has major, year, GPA, and a list ofenrolled courses. In addition to appropriate constructors, gettersand setters, make two methods addCourse and dropCourse.
3. Design and implement a program, either in main() or inanother class, that calculates the GPA of a student. The student’scourses should be displayed in console, one at a time, and thegrade of the course will be input to console by user. After allgrades were input, the GPA should be displayed and be recorded inthe student object.