Foundations of Modern Cosmology