composer init
add unit test and reverse method