Code for the kinograph project