begin to write toy in 7 primitive functions and define function