Implementated exception demo program successfully