Motion of Ideal Gas Molecules in a cylinder