Update

Finalizing the second function