FINAL CHANGE: Function Implementation

Tried to do function implementation. Failed.