ex2 commit 3- modified