inheritance makes more sense