add loop function

require 'y' or 'n' to loop or exit