JS Last 2 homeworks + one problem from the first