added session.define() method