implemented first version of rake task