Added faltten object method and tests