# QChem Tutorial
## Optimization and frequency
Let's take a guess geometry for the water molecule and put it in `h2o.xyz`:
```
3
H 0.76144678642012 0.42041157793785 -0.21139612912752
O 0.00092389677508 -0.10975434825824 0.05112764711589
H -0.76825069319520 0.42203277032039 -0.18105150798837
```
In this tutorial we are going to use the single `opt-freq` input, that consists in an initial hessian calculation, followed by an optimization and finally by a frequency calculation. We create the input file using `bulma`:
```
python bulma.py h2o.xyz --qchem-opt-freq --BS def2-QZVP
```
In this tutorial, we are not going to use the default basis set (def2-TZVP), so we include the `--BS` flag. As a remainder, `bulma` adapts only _some_ tags, so some methods and basis sets require the correct, _verbatim_ string in input, as in this tutorial.
We recommend to include the `-save` option when running QChem, otherwise the scratch folder will not be saved and the `HESS` file will be lost:
```
qchem -save -np <# proc.>