Class validate and specs