added:
1. read from file
2. totalWeight