Electronic Structure Calculations for Solids and Molecules