Define Task class as ActiveRecord model