Add a constructor to TwoDShape

http://ideone.com/Uwokqo