working on loop for printing list