Added script to reasolve homework 5.1