adding function and test specification as well as stack skeleton (stack.cc)