prepare for memoir template