Thank you for great tutorial! How can I use your code for categorical variables?