Implementing the adding content function