how to separate this code in another class

Printable View