refactored and finished writing reflection