He has created variables for experience and assigned them to an array as the object, but you could quite easily just use the player object or in fact any object. There's no need to use families for this as it doesn't reduce any code, it's fine as it is. If you used families then the code would be identical but instead of using the array you would be creating a family instance.