add task to gym class