Created conditional statements and tested.