Added homework partial function