added error example

error calculation example with multiple vars