Use inheritance instead of creating meta class