Basic Code

This is the algorithm that I've already created. I should eventually use
a function.