worked on final thoughts
merged code