Eliminated len().
Made new() more flexible with arguments.
Code simplification.