Added a simple line drawing function