simplified getType
simplified btree example