day1 ex2 and ex3