Solution for mp1