Move ruby classes into lib folder for better organization