Looping solved, default case implemented