Adding more code to the rod experiment