Function pointers

Some tests. I'm going to get rid of command objects and replace it with
function pointers.