stage 10- added support for functions with no arguments