some code for my netflix challenge