Added more code to Block constructor