Adds type and extends try catch