Initial code
referee and tests