Test shard function. Output is not completed yet
Forgive me nothing complete or tested, just too lazy