adding model simulator in cpp