This pattern is elevated to a language construct in Scala. You can use the object keyword to create an object which serves the cause.