type Shape { width: int } let shape = Shape(); impl Shape { fn new() { self.width = 10; } fn method() { println self; } } let shape = Shape(); println shape.width; // out: 10