On the analysis of thin-walled beams based on Hamiltonian formalism. (1st July 2016)