modified note constructor to take params