implement Array.of