this may not be suitable code for RoR, I'm not sure, but it avoids the compilation problem and was fun to try out (at least for me)