added advertisement script
working on persistence and tests