Functions WS 15 - added var to store final value