adding initialize method to simplify binding to a model