refactoring programs
refactored data_aggregator, move part of codes into utilities.