refactor: replace molecule and model with compound