public Object pop() throws Exception {
		if (size == 0)
			throw new Exception();
		return elements[--size]; //memory leak.
		/**
		 * fix:
		 * 	Object result = elements[--size];
		 *  elements[size] = null;
		 *  return result;
		 */
	}