Created Shape class and implemented the AbstractShape type