linux version of homework 3