Implement semester4 labs 1-2