Abstract prompt function and \'changed\'array