Modularize line, area and circle