added clustering code, looks like fm could have 4 classes