printSequences() works perfectly