support multiple parents

It's minor template enhancement to support multiple parents.

We will be able to detect class hierarchy automatically in the future.