type Property = ref object val:string items:seq[string] proc add(this: Property,item: string)= this.items.add(item) var a = Property() a.add "hmm" a.add "huuh" a.add "bleh"