empty? used instead of size and spaces added in attr_reader