Now functional with test example