lab 4.1 - validating data