simple model algorithm added