adding sudo code to the main method to match the assignment.  will fill in after its all written out.