step practice of scala