designed and implemented function-calling using continuations