fixed syntax errors in shape
refactor out Shaper2AC
implemented Shaper3AC