Adding psuedo code for you to file.