Fix filename method example

Fixes #10