Corrected code with coding rule; Added os directory.