more work on foundations chapter