def findFirstNegative(xs: Seq[Double]): Option[Double] = {
        xs.find(_ < 0)
    }