Assignment-2 for embedded systems lab