refactor in the Display class, create another class named request