rectangle into own module

New rectangle functionality implemented in its own file.