Worked on HW7

-Made some tweaks and added the barrier class