adding exceptions handling practice