assigning classes