Implemented toString and an equivalent shorthand tos() to make the examples clearer