Replace response variable by a method in get_gpa