More Python 3 ex15

In exercise 15 (Stacks and Queues) you use the same name for the variable top and a method top of the Stack class. Is this done on purpose to get people to discover a test implementation such as:
def test_top():
stack1 = Stack()
stack1.push(‘something’)
assert Stack.top(stack1) == “something”
stack1.pop()
assert Stack.top(stack1) == None
then, realizing this probably a bad idea, rename the variable freeing up its name for the method?
Or, am I doing something wrong?

Yes! That is a bug that is fixed in the git repository here:

I went with renaming the function from top to first.