added authorization and token functions + Product class