Added example; fixed runtime error.