implemented to_s and specs passing