Differentiate between foreground and background classes