Refactor: backend class