add created_at method