creating main file

source file includes presentation logic as well,as execution of separated presentation logic from source code failed in heroku