move UserInfo class to separate file