reading http://www.atmarkit.co.jp/fjava/rensai4/scala02/01.html