Adding function implementation to .h