Parameterized the returned value in build method