You are not stuck, thats a good start.
What do you need help with? other then writing a code for you.