g() or i()?

You ask, "What do you expect `g()` to return when the code is run?" But there is no g().  Do you mean i()?  This suggested change assumes so.  If that's not what you meant, please rewrite accordingly.  Spencer 
p.s.  Google Chrome locked up trying to make this change, so I switched to Firefox.  I mention this in case you get a duplicate.