Exception handling working. Tested