Man admits to murder, sentenced to 45 years