do this project in a ruby way