Methods isStackFull() and isStackEmpty() needs to be overwritten, too.