added createFromArray()