finished function of pzzyEjzb

and added all functions template