Modulation

Seperated the code into reuseable files