this method belongs to the `Stack` class?