added map model and methodes