Added deleteLine method