Add base implementation of attachments
Test factory.create
Add tests