Succesfully impliment active record and model