adding tests
externalized survey
fixed func signature
use survey for answer