Added third constructor which includes defStyle