adding code for spike and slab model