refactoring
initial commit
finishing calculating triples