scala.Math is deprecated, use scala.math instead