Modelb code tested