Writeup and simulation