Use getFunction instead of fun property
Merge pull request #8 from noradaiko/master

Use getFunction instead of fun property