Creating if and then statements