On a new technique to manufacture isochronous Hamiltonian systems: classical and quantal treatments