format code + simple console app