Rect function added,
Line function added as it needs from the scrach development.