Please take another look. I tried to follow how `b` and `residuals` are described.