How to draw a geometrical Line using corona SDK?

This is actually very simple in corona.

local function drawLine( event )
  if(event.phase == "ended" ) then
        line = display.newLine(event.xStart, event.yStart, event.x, event.y)
        line:setColor(255,255,0)
        line.width = 5
  end
end