make prettier, changed example, added clear button