added method to add random classes