Colocando os trys and catchs