added ifelse exercise
finished ifelse