Added socket class and purchase totaller class

sockets need logging and handling of data