How are products obtained through patterns?