Nonequilibrium Phase Transitions in Lattice Models: The contact process