https://stackoverflow.com/questions/45130465/inserting-at-the-end-of-stack