Prompt code from CodeBlock class, added static accessors to UIPrompt