solved 6th problem (need to verify on PE site)
solved 7th problem (need to verify on PE site)
solved 8th problem (need to verify on PE site)
more work on problems 7 and 8