Trying to figure out how to create an inner class