solve ex2