compiles with c++11
pendulum didn't compile