taking domain as input from user and rubocop fixes