A physics simulation engine for educational purposes