Hilbert space structure in classical mechanics: (I)