class Point { var x; var y; } function main() { var p = new Point(); p.x = 10; p.y = 20; return p.x + p.y; }