added program for shared functions