reformatted code
added first tests
added first tests