added more of the Chatper 1 example code;
not sure why Lagrangian-action doesn't work as expected (under MacOS; I'll have to try it on the Linux build to see if that makes any difference);