g initially null
after assign: g.ping() = 42
