Add a constructor to TwoDShape

http://ideone.com/YqCvl3