Add logic to count profits and rearrange, rename and rewrite old functions
Add logic to count profits and rearrange, rename and rewrite old functions

reykjaviks/head-first-javascript,reykjaviks/head-first-javascript