Refactored the peak_source class into a builder and a seperate operationg function.