Implemented Stack and updated print methods