Using type inference instead of explicit return type