Merging Two Codes?

You might want to use the IDE TAB feature.