The Stack class – a new method