Functional App Architecture. Some refinements need made