feat: inttroduce the process() method

Closes #1