creating constructor private