What is the function of the atria and the function of the ventricles?

Right atrium-receives o2 poor blood

Left atrium- receives o2- rich blood

Right ventricles- sends o2- poor to lung

Left ventricle-sends o2- rich blood to body

by the way i got all the info from my science teacher