Update Stack class. Add Stack tests.