assignment 2, active record without rails