add writing logic analysis homework