added Hamiltonian class for more general nn-interaction