Refactoring on back_propagation.sce