write or copy some codes for practice