how to find foundations step by step