wrote board class and tests