Capitolo2 Environment and code modified from the original code repository for the "Second Edition of Machine Learning Engineering with Python" book