implementate the TODO function.

Signed-off-by: Samuel Deng <samuel@localhost.localdomain>