add method for pushing elements to stack
add method for popping elements from stack
add top method to retrieve last pushed element &some test refactoring