Is this code or pseudo-code? Does it compile? Can you please re-post after performing an Auto Format?