added source code from MIH-Demo