Lab has to implement popen() function