move all shape constructor methods to to their prototype

will make it easier adding methods in the future.