functional first part of this lab