Completing the if else exercises