Implemented multiple selection of shapes.