not much done on paper but logic worked out in my head