Yo this is really easy... anybody could figure it out. Here's it anyway:
-------------------------------------------------------------------------
---0-2-3-5-7-----0-2-3-5-7-5-----3-5-777-87-5-3-5------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
the same goes for the ending.