updated active record example