change scala object extends App, remove main mothed