New Code reproducing all the three peaks