rewrite

compiles with error : "outputtype of classlibrary cannot be started"