assignX and Y
part 3
part 4
update