add getitem method
add to_file method
add fancy indexing