Change displayTask method from returning String to void