Better inheritance using categories