first skratch of validator class