Copied examples from hypre examples.

I made some small modifications.
Copied AMG example from hypre examples