a simple test. right now my algorithm sucks!