Working on exec() method