initial
Added log for ex4
Added problem description
minor refactoring