Hi,
Few mistakes I found in your code were:
1. You haven't closed your destructor correctly. You have just closed the while loop but not the destructor.
2. While pushing, Shouldn't it be
...