push and unshift can receive an element and don't update; pop e shift now returns the element