The Monastery is NOT a code writing service. Rather, it seeks to be a site to help you learn (cf, "feed a man a fish...." and similar). To that end, "how should I (write some particular code)" is a question that tends to receive disparaging replies... or guides like this on some of the most basic protocols here.
If you pose your question -- with code (and data if relevant) -- to seek assistance on a particular issue that has you stumped, you will have learned something in the course of writing that code and exploring the related documentation and you'll usually find that the Monks will be generous with their time and expertise.