Task B: Validation and Unit Testing