Text this: Monte Carlo Simulation of Pile-up Effect in Gamma Spectroscopy