data persistance using common class.