updated previous examples according to given feedback and added assignment 4