Use more descriptive names; take advantage of fact that 'pop' returns the last value.