Made stack a required parameter Stack creates local instead of having it passed in