implemented a quad shape