The example for code for issue #21 seems to be working as expected. Close #21