That looks about right - apart from the obvious syntax errors. Fix those and tell us what the output is.