Builder pattern with nested class