some practical code written by c(just for personal use and practicing using github)