scala class writer object to enable static access to methods