Working model

Working model of the app. No error handling. Will be added later. Would
like to convert this to an Android app.