function 3

Function 3 added