'like' is a preposition meaning 'for example' here. So yes, you can use 'for example' if you want but 'like' does sound better in your example. Instead of 'like', you could also use 'such as' but you need to be aware that there is a subtle difference between the two. 'like' implies comparison. For example, "Dan enjoys watching shows like Modern Family" implies that Dan likes shows that are similar to Modern Family, but not necessarily Modern Family. 'such as' implies inclusion. When we replace 'like' with 'such as' and say "Dan enjoys watching shows such as Modern Family", we state that Dan enjoys watching "Modern Family" among other shows.