Added code and tried to figure out what the If statements did