Added a function to process the incoming data.

Created own type to store information.