check model_1 for correctness. Moved initializaition of t to there. Removed count parameter.