improved example. using template. copying folder and files