Added Sample Algorithm (doesnt work yet)