class Test pro [i as int] as int get return i*i set pass def main is shared Test().check def check assert this[1]==1 assert this[2]==4 assert this[-3]==9 this[1] = 5 this[2] = 6