scala object used instead of java singleton