task02 code cleand up, all good to go
try and catch clauses added, all good