Mirror master
annotated source for advanced example