function and few basic prg