Built basic HABTM implementation.