added theoUtil with tests