algorithm now works for hardcoded data set