carry out printer class
add printAllInfo function