added power and square function - chapter 03 - second edition