encapsulating code into a struct