Implemented first version of functional app.