Pseudo code

main activity with pseudo code.