Adding function to create residue example subsystem