Working on handling exception