Adds buildList method
Adds optional fn parameter to the sequence function, it will help to genenerate a string with a sequence