The church was Santa Maria del Carmine and Masaccio went along with his good friends , the sculptor Donatello , the architect Brunelleschi and the painter Masolino . In Florence , Masaccio could study the works of Giotto and become friends with Brunelleschi and Donatello .