Extending integrable hamiltonian systems from 2 to N dimensions