Alternatives to inheritance