An Introduction to Semantics using Type Theory with Records