More work to industry

added functions
added ternary for prompts