App basic logic

Closes #1