Resource theory for work and heat | Synapse