isCompleted() method implemented