exercise on ifs