Updated the code that now uses an array of structs with strings instead of structs with chars