finished a/b/c solutions for Lab2