created homework 4 assignment with conditional statements