struct Point {
    x: Float,
    y: Float,
}

impl Point {
    fn sum(&self) -> Float {
        self.x + self.y
    }
}

fn add(a: Float, b: Float) -> Float {
    a + b
}

fn main() {
    let p = Point { x: 3.0, y: 4.0 }
    println("x = {p.x}")
    println("y = {p.y}")
    let total = add(p.x, p.y)
    println("add(x, y) = {total}")
}
