Using fluent api to construct class