#9 Use select module to check output

@fizyk @pwilczynskiclearcode please, look at the code
Okay