Sample project: https://github.com/shsteven/MagicalAPI