Fixed bugs
Working Example