add first version of horse race code