Create a custom collection class