Revert "The third version, finished all functions, need to be tested"

This reverts commit 78cfc5f2bec45711b59372af0de66de2a7122263.