semi-pseudo code for first working app

code does not work quickly wrote down how it will be done