refactor ex2
refactored ex3
minor change
ex4 updates
updates
Added to ex5