4.6 custom funtions with apply
comments added to all sections