refactored last_updated to model class