Edited print_line from class

"printf(line)" is probably wrong