A2 - Finished predict.m