Implemented ad system

Integrated ad system #64