Create functions

Ccahed : http://www.linuxfromscratch.org/lfs/view/7.0/scripts/apds03.html