ADD: upgraded basic script for educational purposes