fixed shared inheritance, added styling