why functions? examples