Printing algorithm working