implemented push, pop, and altered part 4 tests/output