Foundations of Astrophysics