Created class for word prediction scanning.