Gesture Recognition for Improved User Experience in a Smart Environment