update add a sample of static polymophism