We developed a model of default based on a lending club dataset in 5 steps, from the cleaning stage up until result improving methods such as random forest and boosting. Furthermore, we maximized the profit of the newly created portfolio by optimizing the cut-off probabilities and marginal profit change compared to the original portfolio.