initial commit fig 8 panel code