iterating through input and successfully creating statements with add function!