update the codes ,nearly complete

using 3 types of styles