What is a trait in Scala and how to use it