refactor: use arrow functions where applicable (#113)