Added pop() record implementation