how did the first ferris wheel work