working on errorhandling exercises