updated example to include A*