test with struct for math