Implemented first 4 assignments