Generic code for writing a new user story template