reformat
implemented code skeleton