Written bert program. Testing due