Implement the places generation

The places generation module has been implemented. And the main model
module has also been modified.