I found this line a bit unreadable. var classes start as an array and end up as a string.
Can we fix the type along the operation ?