It is possible to achive the same final result without transforming last table in task but I decided solve this task completely. This exercise wasn't easy but significantly enhance my awareness to pay atention for similar problems. Good luck for all!