Coding the move method