defined data to ping with server,improved realiz. MVC
pattern,unspecified code to new Classes