Code clean up, defined function sharkodlak.extends