modified train and test steps to 5 and adjusted legend and xlim