Some patterns used in Scala development