Update: refactor, ruby should be concise and to the point
Update: there might be a one liner I could use to exit