Week 3 update

added new for loop
added managed pointers