Drawing straight and curved lines