the cdh_2 code for Snaps Winter Quarter