Analysis and Design of Shallow and Deep Foundations