add prototype keyword to Rectangle