Why is this a nested class?