Add length and empty? method definitions