The Market Day code

Fixed so that native functions are called correcly. Beware renaming the
package!