Behavior as an inheritance