added book macros
working on groupoid model