continue composition vs inheritance