Add an interface to make the program run

After architecture team settle down the input and protocol, finish the
basic algorithm of the program.