change print_data to be member
	modified:   as1/assignment01_159201.cpp