finished second if else exercise