Code for VMC project in FYS4411