Implemented slightly edited version of print with clearer output