add shard method
Merge pull request #6 from simon-liu/add-method

add shard method