Why is this an inner class?