getting started with a readPacketsFrom method