Davor's solutions for 'Debugging and Exceptions'