Hamiltonian approach to the soliton-soliton interaction and for a classical solitonic gas