Function to create line equivalent to "new" constructor