Created a stack data structure from scratch.