type Pair { first: String, second: String } impl Pair { fn new(a: String, b: String) { self.first = a; self.second = b; } fn sum() -> String { return self.first + self.second; } } fn print_pair(s: Pair) { println s.sum(); } let a = Pair("Wow", " Cool"); print_pair(a);