fixing algo1, added main