Added solution for task #1
Added solution for task #2
Added solution for task #3, corrected solution for task #2