Making it more light, removed child validating
Added method addAttribute