Code for my 250B class