Modularize render system using inheritance