adding inputstream class as nested resource