added TypeArray class