clone the sparrow 's simulation code to study and test