refactored to_string method, added cons, car, cdr