Aligned code and example output (thanks to earthling_paul)