Class that implements MLP