added constructor using passed parameters