Xiaofan simulator tutorial