add Page class/call function print_out from main