generalize the code and add readme