Implemeting some parts of sysfsDemo