object inheritance
improving Validate class and making it work