Functions fix, peek function for stack.