adding newStack function that returns the object
fixing bug in pop
changing variables to private
using the 'correct' way of declaring variables