taskDetails method created.