Added inheritance for classes IngredientRecord and UserRecord