Tasks1-4 solved