Updated c01 and c02 with exception-handling