Extended Hubbard model in two dimensions