finished ruby alg, began html template