Model of the tourism system