Added interface for Model and implemented MapModel.