Completed functions

Pg 16 - SPA book