introduced select function
added class file
added signal and slot