Added in method to get heights from
Tidied up rectangle demo and changed to 'return' 2d array