added user input to insert an average number of twins per grain