Work and heat transfer in the presence of sliding friction | Synapse