Change implementation to class based (OOP style). Implement findEarliestReadyTag(). Change keyword Indices to Keys because Indices is a deprecated keyword and is recommended to be replaced with Keys.