This whole val code is extracted from a README!

View Val