Made speed of sound a public function