Added a constructor for Surface.