added status() method and tests