Distributes classes to proper packages