Shape class implemented