scala class notes