added noise function - chapter 03 - second edition