Use trait feature when you want to share code across multiple classes.