Revert "Added functionality to rectangle"

This reverts commit e83eb23f543040bafd7e78b700913672c2cf04fe.