trying to do question 3 ... facing some problems