func prog assignment 3
func prog assignment 3