first attempt
Now with less typos. Seems to do what it says on the tin now.