created functions files

created functions files