Added elasticity property to shapes.