Model Theory with Applications to Algebra and Analysis: Volume 1