solved ex6.3a