Code Modified to Revealing Module patter