make an instance of the inner class in a separate class