committing fixed sim soln code