added compute file to make main example.py compact