1st year thingy: c++ stack implementation