lab 2 with some of validation