Fixed algorithm for assignment 4