wrote stack functions pop and push to utilize linked list as a stack