added first implementation and test
added rake task