use standard scala formatting, and correct example