From https://github.com/hibooboo2/Assign2_SER_422/blob/master/src/Log.java