models general functions are removed from each models and added in to one model Parent_model.php which is now being inherited by all the other individual model for re-using those general functions