added Lab3 Math almost completed
added func as argument