Improved stack implementation by using pointers. Removed redundancy, improved re-usability and shown a clear separation between stack implementation and client code without actually making 2 files.