There's already TONS of tutorials on how to make that system. You're better off looking at one of those.