Add AR collections and repositories.

Fix #3.