Altered create property group method to return PropertyGroup instances