improved lines example, added gradients