made changes to start implementing procedures... almost done but output is still a little off