these are codes i wrote in the class "Programing2"