first function implementation completed.