This is sample code for ActiveRecord