Creating a partial function