Refine my codes version 1.0;