added methods to models/task.rb