understanding different types of foundation