Program6 for week 7 - exception handling