S r create surveys

creating survey functionality