What are the two major criteria that must be fulfilled while designing the foundation?