Building Blocks of AI: An Introduction to Neural Networks and Transformers