Matthew C 

Updated version of the code