wrote basic stack using linked list