First part of homework0