Entity is based on John Resig's inheritance article