Adds race concept

Fixes #6