implemented initial version of the app