First draft of a working app