Changed name and added a algorithm