Example using try