functional composition and application working