model testingalgorithm created, code not tested yet