Added distribution rules

Fixes #3, sorry for the long delay.