Rectangle mostly done, needs the prototype functions adding and some test cases made.