Perturbation technic for constructing new integrable systems which are close to the most celebrated integrable systems in classical mechanics are developed. Analytical conditions for the periodicity of billiard trajectories with the ellipsoid are given, generalizing the Cayley condition for the Poncelet Theorem.