reduce the code and create PDK example with two instances