start coding and organizing code
using staging function