implemented select, I need to add more examples for it but it is straight forward really.