Coded function

Coded function