Functions to logical classes