Some examples of scala magic