write some codes after reading some books