Used ruby code added as class and task lib