done: implementing destructuring