Cleaning up examples by using inheritance.