Logic survey

Added survey logic