Github test

1. Change the function order: put main() in the front of file
2. Add function declaration