implemented basic function param passing (no support for recursion)